<?php
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

use think\facade\Env;

return [
    // 应用地址
    "app_host"         => Env::get("app.host", ""),
    // 应用Trace（环境变量优先读取）
    "app_trace"        => Env::get("bug.app_trace"),
    // 应用的命名空间
    "app_namespace"    => "",
    // 是否启用路由
    "with_route"       => false,
    // 是否启用事件
    "with_event"       => true,
    // 默认应用
    "default_app"      => "index",
    // 默认时区
    "default_timezone" => "Asia/Shanghai",

    // 应用映射（自动多应用模式有效）
    "app_map"          => [],
    // 域名绑定（自动多应用模式有效）
    "domain_bind"      => [],
    // 禁止URL访问的应用列表（自动多应用模式有效）
    "deny_app_list"    => ["common", "Common"],
    // 异常页面的模板文件 1=tp错误页， 2=自定义错误页
    "exception_tmpl"   => Env::get("app.error_tpl") == 1 ? app()->getThinkPath()."tpl/think_exception.tpl" : app()->getRootPath()."public/error/error.html",    //错误提示页面
    // 错误显示信息,非调试模式有效
    "error_message"    => "BUG ? 不存在的 („ಡωಡ„)",
    // 显示错误信息
    "show_error_msg"   => Env::get("bug.show_error_msg"),

    //网站、缓存唯一标识，用于多网站在一个服务器时区分
    "web_unique" => Env::get("app.web_unique"),
    //权限表缓存标识
    "auth_rule" => "authRule",
    //后台菜单缓存标识
    "admin_menu"=> "adminMenu",
	//缓存位置 ,空表示默认，file模式下在多应用下缓存会分别存储在不同文件，需要指定公共目录
	"cache_path"=>"../runtime/cache", // tp6-admin/runtime/cache
    
    // DES 配置
    "des_config" => [
        "desKey" => "d!j%p*t(", // 秘钥
        "desIv" =>  "\x12\x34\x56\x78\x90\xab\xcd\xef", // 向量
    ],

    // 微信公众号开发配置
    "wechat_config" => [
        //开发配置token
        "token" => "",
        //微信公众号app_id
        "app_id" => "",
        //微信公众号app_secret
        "app_secret" => "",
        //微信公众号配置地址
        "app_url" => "",
        //商户平台id
        "mch_id" => "",
        //商户平台api秘钥
        "api_key" => "",
        //商户apiclient_key证书
        "apiclient_key" => "",
        //商户apiclient_cert证书
        "apiclient_cert" => "",
    ],

    //模板输出字符串内容替换
    "view_string" => [
        "__static__" => "/static",
        "__components__" => "/components",
        "__upload__" => "/upload",
        "__editor__" => "/ueditor",
        "__tinymce__" => "/static/tinymce",
        "__mui__" => "/mui",
    ],
    //分页数量
    "page_num" => 20,
	//分页配置
    "page_config" =>[
        "previous" => "上一页",
        "next"  => "下一页"
    ],
    //技术支持
    "support" => [
        "name" => "1874",
        "email" => "243111600@qq.com",
        "company" => ""
    ],
    //EXCEL存放地址
    "excel_url" => $_SERVER["DOCUMENT_ROOT"]."/upload/excel/",
    //EXCEL下载地址
    "excel_down_url" => "/upload/excel/",
    //upload文件路径
    "upload_url" => $_SERVER["DOCUMENT_ROOT"]."/upload/",
    //upload下载路径
    "web_upload_url" => "/upload/",
    //管理员头像上传路径
    "admin_header_url" => "/headerImg",
    //轮播图片上传路径
    "carousel_url" => "/carousel",
    //文章封面上传路径
    "article_url" => "/article",
    //tinymce富文本图片上传路径
    "tinymce_url" => "/tinymce",
];
